package cn.itsource.itsource.domain;

import lombok.Data;

import javax.persistence.Id;
import javax.persistence.Table;

//@Data
@Table(name = "t_pet_type")
public class PetType {
    @Id
    private Long id;
    private String name;
    private String description;
    private Long pid;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public Long getPid() {
        return pid;
    }

    public void setPid(Long pid) {
        this.pid = pid;
    }

    @Override
    public String toString() {
        return "PetType{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", description='" + description + '\'' +
                ", pid=" + pid +
                '}';
    }
}
